#ifndef contactListWidget_H_
#define contactListWidget_H_

/*
#include <QtGui/QListWidget>
#include <QtGui/QListWidgetItem>
#include <QtGui/QLabel>
*/
#include <QtGui>
#include <QtXml>

#include "addContactDialog.h"
#include "controlContactDialog.h"
#include "codec.h"
#include "contactData.h"

#include <iostream>
#include <cstdio>
using namespace std;

class contactListWidget : public QListWidget
{
	Q_OBJECT
	public:
		contactListWidget(QWidget *parent, contactData *data);
		~contactListWidget();
#if 0
		contactList myList;
		contactList myListBlack;
	private:
		void saveContactXml();
		void loadContactXml();
		void moveToBlack(int row);
		void moveFromBlack(int row);
#endif
		contactData *mContactData;
	signals:
		void contactDataChanged();
	private:
		void updateList();
	public slots:
		void slotItemClicked(QListWidgetItem *);
		void addContact();//增加一个联系人
};


#endif /* contactListWidget_H_ */

